package com.java.java8.util.functioninterfacedemo;

/**
 * @author liyanhao
 * @Date 2023-03-26 18:21
 */
public class FunctionDemo1 {

    public static void main(String[] args) {
        Converter c = from -> Double.valueOf(from+"");
        System.out.println(c.convert(123));

    }

}

@FunctionalInterface
interface Convert<T, R>{
    R convert(T t);
}
